package com.cuiyun97.mapper;

import com.cuiyun97.domain.po.SetSms;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SetSmsMapper {

    /**
     * 查询sms配置最后一条记录
     *
     * @return
     */
    @Select("select * from set_sms order by id desc limit 1")
    SetSms getLastOne();

    /**
     * 更新
     */
    void updateLastOne(SetSms lastOne);
}
